<%@ page pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<table class="table table-bordered table-hover">
	<thead>
		<tr>
			<th>年份</th>
			<th width="150">制作者</th>
			<th>管理</th>
		</tr>
		<tr>
			<td colspan="3">
				<button class="btn btn-success" onclick="newOne();">
					<i class="icon-plus"></i>新增报表
				</button>
			</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${pager.rows}" var="item">
			<tr>
				<td>
					<button class="btn btn-small btn-success"
						onclick="showOne('${item.id}');">
						<i class="icon-edit"></i> 编辑
					</button>
				</td>
				<td>${item.maker.username}[${item.maker.localName}]</td>
				<td>${item.department.name}</td>
				<td><a href="#" onclick="removeOne('${item.id}')"> <i
						class="icon-remove"></i>
				</a></td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="3">${pager.pagination}</td>
		</tr>
	</tfoot>
</table>
<script src="scripts/apps/yearplanning/list.js" type="text/javascript"></script>